package com.kingtao.entry;

import lombok.Data;

/**
 * @Author: kingtao
 * @Date: 2023-07-24-10:02
 * @Description:
 */
@Data
public class Peer {

    private String address;
    private int port;

    public Peer(String address, int port) {
        this.address = address;
        this.port = port;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return address + ":" + port;
    }
}
